package org.wuyichun.gift.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmployeeRegisterDto {
    private Long id;
    @NotNull(message = "账号不能为空")
    private String username;
    @NotNull(message = "电话号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式不正确")
    private String tel;
    @NotNull(message = "电子邮箱不能为空")
    private String email;
    @NotNull(message = "密码不能为空")
    private String password;
    @NotNull(message = "类型不能为空")
    private String type;
}
